package com.kerry.configure;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kerry.filter.MyFilter1;

@Configuration
public class FilterConfigure {
	
	@Bean
	public FilterRegistrationBean filterRegistrationBean(){
		FilterRegistrationBean frb = new FilterRegistrationBean();
		frb.setFilter(new MyFilter1());
		frb.addUrlPatterns("/filter/*");
		return frb;
	}
/*	
	@Bean
	public FilterRegistrationBean filter1RegistrationBean(){
		FilterRegistrationBean frb = new FilterRegistrationBean();
		frb.setFilter(new MyFilter());
		frb.addUrlPatterns("/filter/hello/*");
		return frb;
	}*/
	
//	@Bean
//	......
	
	
}
